import request from '@/utils/request'



// 新增量检具
export function addGauge(data) {
  return request({
    url: '/ny-iqc/gauge',
    method: 'post',
    data: data
  })
}


// 修改量检具
export function modGauge(data) {
  return request({
    url: '/ny-iqc/gauge',
    method: 'put',
    data: data
  })
}

// 量检具列表
export function listGauge(data) {
  return request({
    url: '/ny-iqc/gauge/list',
    method: 'get',
    params: data
  })
}

// 获取量检具详细信息
export function getGauge(id) {
  return request({
    url: '/ny-iqc/gauge/' +id,
    method: 'get',
  })
}


// 删除量检具
export function delGauge(id) {
  return request({
    url: '/ny-iqc/gauge/' +id,
    method: 'delete',
  })
}

// 导出量检具列表
export function exportGauge() {
  return request({
    url: '/ny-iqc/gauge/export' ,
    method: 'get',
  })
}
